package com.peas.platform.module.icims.base.approve.controller.vo;

import java.util.*;

import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("审批单待办待阅")
public class ApproveOrderTobeVo extends BaseVo {

    //外键
    @ApiModelProperty(value = "审批单ID")
    @NotNull(message = "审批单ID不能为空")
    private Long approveOrderId;

    //1:待办，2:待阅
    @ApiModelProperty(value = "待办待阅类型")
    @NotBlank(message = "待办待阅类型不能为空")
    @Size(max = 20, message = "待办待阅类型不能超过20个字符")
    private String approveOrderTobeType;

    @ApiModelProperty(value = "待办待阅标题")
    @NotBlank(message = "待办待阅标题不能为空")
    @Size(max = 100, message = "待办待阅标题不能超过100个字符")
    private String approveOrderTobeTitle;

    @ApiModelProperty(value = "待办待阅内容")
    @Size(max = 200, message = "待办待阅内容不能超过200个字符")
    private String approveOrderTobeContent;

    //外键
    @ApiModelProperty(value = "接收人ID")
    private Long receiveUserId;

    @ApiModelProperty(value = "查看时间")
    private Date readTime;

    @ApiModelProperty(value = "处理时间")
    private Date processTime;

    //1待处理，2已处理
    @ApiModelProperty(value = "状态")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

}
